<?php
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
// DLMan by Shedd Technologies International		  				//
// http://www.dlman.com | info@dlman.com							//
// Copyright 2003 by STI, All rights reserved.						//
// ---------------------------------------------------------------- //
// Usage of this software is governed by the terms of GPL. 	    	//
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
require_once("../global.php");
require_once("../uis.php");
require_once("../config.php");
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
$stopat="4";
$startat="1";
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
/*
	Get version number from database!
*/
$version_number=$config->cs['version'];
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>DLMan Upgrade</title>
</head>
<body>
<b>Upgrade from DLMan <?php print $version_number; ?></b><br>
<p>Listed below are the available upgrade scripts.  Please read the documentation before selecting an upgrade script to make certain you run them in the correct order.</p>
<ul>
<?php
	print createupgradelist($startat,$stopat);
?>
</ul>
</body>
</html>
<?php
function createupgradelist($startat,$stopat,$comma="") {
	if ($startat<=$stopat) {
	  return $comma."<li><a href='upgrade$startat.php'>upgrade$startat.php</a>".createupgradelist($startat+1,$stopat,"<br>");
	}
}
?>
